MediaSetRate
TheMediaSetRate
function allows the Movie Toolbox to set your media's
playback rate.
pascal ComponentResult MediaSetRate (ComponentInstance ci, Fixed rate);
ci
- Identifies the Movie Toolbox's connection to your derived media handler.
rate
- Contains a 32-bit, fixed-point number that indicates your media's new effective playback rate. This effective rate accounts for any master time bases that may be in use with the current movie. Positive values represent forward rates and negative values indicate reverse rates.
DESCRIPTION
The Movie Toolbox calls your derived media handler'sMediaSetRate
function whenever the movie's playback rate changes. The Movie Toolbox provides you with a new effective rate for your media. This effective rate accounts for any master time bases that may be in use with the current movie. Consequently, you may use this rate without having to further transform it.You obtain the initial rate information from the
effectiveRate
field of the movie parameter structure that the Movie Toolbox provides to yourMediaInitialize
function.Your derived media handler should support this function if you perform your
own scheduling. If you are doing your own scheduling (that is, you
have set thehandlerNoScheduler
flag to 1 in theflags
parameter of theMediaSetHandlerCapabilities
function--see page 10-36 for more information about this function), your media handler can use this function to determine when your media is playing, and the direction and rate of playback. This information can help you prepare for playback more efficiently.RESULT CODES
Any Component Manager result code
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help